<template>
  <!-- 左侧模块 -->
  <div class="table-one">
    <div class="left-box">
      <!-- 基地类型 -->
      <dv-border-box-12 class="left-box1 item">
        <div class="tit1">基地类型</div>
        <div class="bigBox">
          <div v-for="item in res1" :key="item.code" class="box">
            <div class="image">
              <img :src="item.image">
            </div>
            <div class="tit">{{ item.tit }}</div>
          </div>
        </div>
      </dv-border-box-12>
      <!-- 案例个数 -->
      <dv-border-box-12 class="left-box2 item">
        <div class="tit2">
          案例个数
        </div>
        <!-- 柱状图组件 -->
        <linesChart />
      </dv-border-box-12>

    </div>
  </div>
</template>

<script>
import imgFood from '@/assets/image/shuidao.png'
import imgCrop from '@/assets/image/lvye.png'
import imgFacilities from '@/assets/image/tiandi.png'
import imgAnimal from '@/assets/image/niu.png'
import imgDigitization from '@/assets/image/shouji.png'
import linesChart from '@/components/echarts/linesChart'
export default {
  name: 'QsgSystemTableone',
  components: {
    // linesEcharts
    linesChart
  },

  data() {
    return {
      res1: [
        { code: 1, tit: '粮食作物', image: imgFood },
        { code: 2, tit: '经济作物', image: imgCrop },
        { code: 3, tit: '设施农业', image: imgFacilities },
        { code: 4, tit: '养殖', image: imgAnimal },
        { code: 5, tit: '数字乡村', image: imgDigitization }
      ],
      res2: [
        { code: 1, tit: '水稻', num: '12' },
        { code: 2, tit: '茶', num: '13' },
        { code: 3, tit: '设施农业', num: '14' },
        { code: 4, tit: '养殖', num: '15' },
        { code: 5, tit: '数字乡村', num: '16' }
      ]
    }
  },

  mounted() {

  },

  methods: {

  }
}
</script>

<style lang="scss" scoped>
.table-one {
  height: 100%;
}
.left-box {
  height: 100%;
}

.left-box1 {
  width: 100%;
  height: 40%;
  margin-bottom: 20px;
  padding-top: 10px;
   .tit1 {
    width: 90px;
    height: 20px;
    text-align:center;
    box-sizing: border-box;
    margin-top: 20px;
    margin-left: 20px;
    border-left: 3px solid #e6c960;
    border-right: 3px solid #e6c960;
    font-family: PingFangSC-Semibold,PingFang SC;
    font-weight: 700;
  }
   .bigBox {
      display: flex;
      justify-content: space-around;
      align-items: center;
      flex-wrap: wrap;
      padding: 0 10px;
      font-family: PingFangSC-Semibold,PingFang SC;
      font-weight: 600;
      .box {
        width: 100px;
        height: 80px;
        text-align: center;
        margin-top: 20px;
      }
   }
}
.left-box2 {
  width: 100%;
  height: 55%;
  margin-top: 20px;
  padding-top: 5px;
    .tit2{
    width: 90px;
    height: 20px;
    text-align: center;
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: -20px;
    border-left: 3px solid #e6c960;
    border-right: 3px solid #e6c960;
    font-family: PingFangSC-Semibold,PingFang SC;
    font-weight: 700;
  }
  .box {
    display: flex;
    justify-content: space-between;
    text-align: left;
    // margin: 10px 15px 0 15px;

  }

}

</style>
